<extend name="./base" />
<block name="title">题目</block>
<block name="body">
    <h2>
        题目列表
    </h2>
    <table class="table table-bordered">
        <thead>
        <tr>
            <th>标题</th>
            <th>内容</th>
            <th>年级</th>
            <th>学科</th>
            <th>上传者</th>
        </tr>
        </thead>
        <tbody>
        <?php
					foreach($problem as $key => $val){
        ?>
        <tr>

            <th><?php echo $val['title'] ?></th>

            <th><?php echo $val['content'] ?></th>

            <th><?php echo $val['Grade'] ?></th>

            <th><?php echo $val['Subject'] ?></th>

            <th><?php echo $val['Uploader'] ?></th>
        </tr>
        <?php
					}
				?>
        </tbody>
        </table>
        <a href="upload.html">我要上传题目</a>
</block>
